﻿using System.Data.OleDb;

namespace TheOutLetLibrary.Infraestrutura {

    class AccessEmpresaDAO: BaseDAO, IEmpresaDAO {

        public AccessEmpresaDAO(OleDbTransaction transacao)
            : base(transacao) {
        }

        public OleDbDataReader CarregarEmpresas() {
            OleDbCommand comando = GetCommand();
            comando.CommandText = " SELECT * FROM tb_empresa";
            return comando.ExecuteReader();
        }
    }
}
